<!DOCTYPE HTML>
<html>
<head>
    <title>欢迎光临EasyMall</title>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="css/index.css"/>
    <link rel="stylesheet" href="css/foot.css"/>
    <link rel="stylesheet" href="css/head.css"/>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
    <script type="text/javascript" src="js/base-v1.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/jquery-1.2.6.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/cookie.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/common.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/jquery.cookie.js" charset="utf-8"></script>
    <script type="text/javascript" src="s/base-2011.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/jquery.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/jquery-extend.js"></script>
    <script type="text/javascript" src="js/logout.js"></script>
    <script type="text/javascript" src="js/lib-v1.js" charset="utf-8"></script>
    <link href="css/prodList.css" rel="stylesheet" type="text/css">
    <meta charset="UTF-8">

</head>
<body>
<script type="text/javascript">
    window.onload=function(){
        var userId="";
        var _ticket = $.cookie("EM_TICKET");
        if(!_ticket){
            return ;
        }

        //当dataType类型为jsonp时，jQuery就会自动在请求链接上增加一个callback的参数
        $.ajax({
            url : "http://www.easymall.com/user/query/" + _ticket,
            dataType : "json",
            type : "GET",
            success : function(data){
                //alert("好啊2");
                if(data.status == 200){
                    var _data = JSON.parse(data.data);//jackson
                    var html =_data.userName+"，欢迎来到京淘！<a href=\"javascript:void(0)\" class=\"link-logout\" onclick='logout()'>[退出]</a>  \|<a href=\"http://www.easymall.com/manage.html\" class=\"link-logout\">[后台]</a>";
                    userId=_data.userId;
                    $("#loginbar").html(html);
                }

            },
            error : function(){
                alert('index error.');
            }
        });
    }
    function search(a){
        var query=document.getElementById(a).value;

        window.location.href="./search.html?query="+query;

    }


</script>
<div id="common_head">
    <div id="line1">
        <div id="content">
            <li class="fore1" id="loginbar" clstag="homepage|keycount|home2013|01b">
                <span id="head_span"\\\x><a href="login.html">登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="regist.html">注册</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="manage.html">后台</a></span>
            </li>
        </div>
    </div>
    <div id="line2">
        <img id="logo" src="img/head/logo.jpg"/>
        <input type="text" value="" accesskey="s" id="key" autocomplete="off" onkeydown="javascript:if(event.keyCode==13) search('key');"/>
        <input type="button" value="搜 索" onclick="search('key')"/>
        <span id="goto">
			<a id="goto_order" href="./myorder.html">我的订单</a>
			<a id="goto_cart" href="./mycart.html">我的购物车</a>
		</span>
        <img id="erwm" src="img/head/qr.jpg"/>
    </div>
    <div id="line3">
        <div id="content">
            <ul>
                <li><a href="#">首页</a></li>
                <li><a href="./product-list.html?page=1&rows=5">全部商品</a></li>
                <li><a href="./seckill-list.html">秒杀商品</a></li>
                <li><a href="#">电脑平板</a></li>
                <li><a href="#">家用电器</a></li>
                <li><a href="#">汽车用品</a></li>
                <li><a href="#">食品饮料</a></li>
                <li><a href="#">图书杂志</a></li>
                <li><a href="#">服装服饰</a></li>
                <li><a href="#">理财产品</a></li>
            </ul>
        </div>
    </div>
</div>
<div id="index">
    <div id="line1">
        <img src="img/index/banner_big.jpg"/>
    </div>
    <div id="line2">
        <img id="line2_1" src="img/index/adv1.jpg"/>
        <img id="line2_2" src="img/index/adv2.jpg"/>
        <img id="line2_3" src="img/index/adv_l1.jpg"/>
    </div>
    <div id="line3">
        <img id="line3_1" src="img/index/adv3.jpg"/>
        <img id="line3_2" src="img/index/adv4.jpg"/>
        <div id="line3_right">
            <img id="line3_3" src="img/index/adv_l2.jpg"/>
            <img id="line3_4" src="img/index/adv_l3.jpg"/>
        </div>
    </div>
    <div id="line4">
        <img src="img/index/217.jpg"/>
    </div>
    <div id="line5">
			<span id="line5_1">
				<img src="img/index/icon_g1.png"/>&nbsp;&nbsp;500强企业 品质保证
			</span>
        <span id="line5_2">
				<img src="img/index/icon_g2.png"/>&nbsp;&nbsp;7天退货 15天换货
			</span>
        <span id="line5_3">
				<img src="img/index/icon_g3.png"/>&nbsp;&nbsp;100元起免运费
			</span>
        <span id="line5_4">
				<img src="img/index/icon_g4.png"/>&nbsp;&nbsp;448家维修网点 全国联保
			</span>
    </div>
</div>
<div id="common_foot">
    <p>
        Copyright © 2011-2015 达内软件技术有限公司 版权所有 保留一切权利 苏B2-20130048号 | 京ICP备09062682号-9
        <br>
        网络文化经营许可证苏网文[2012]0401-019号
    </p>
</div>
</body>
</html>